import requests

url = 'https://www.mashangpa.com/api/problem-detail/6/data/?page=4'
headers = {
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36',
    'referer': 'https://www.mashangpa.com/problem-detail/6/',
    'cookie': 'sessionid=xxs7z5sywxfasnz8dsl2vthknuy2sv0u; Hm_lvt_0d2227abf9548feda3b9cb6fddee26c0=1762344196,1762421178; HMACCOUNT=B7FBCF2D05FEB3F2; Hm_lpvt_0d2227abf9548feda3b9cb6fddee26c0=1762428242',
    'Content-Type': 'application/json'
}
response = requests.get(url,headers=headers)
print(response.status_code)
print(response.json())